You might want to try.....
Removing the printer
Removing any associated drivers and software packages
Downloading the latest full feature driver package
http://support.hp.com/us-en/drivers...l-in-One-Printer-series/5157533/model/5157535
And installing that similarly to when you first purchased the printer, which generally means disconnecting the printer from your computer when you first start the install and connecting it when prompted.
NOTE: That 5520 series, has any number of distinct models so make sure you get the appropriate driver for your respective model.
HP Photosmart 5520 e-All-in-One Printer
HP Photosmart 5521 e-All-in-One Printer
HP Photosmart 5522 e-All-in-One Printer
HP Photosmart 5524 e-All-in-One Printer
HP Photosmart 5525 e-All-in-One Printer