Are you by any change working with Windows 8.1?
With Windows 8.1 this is a known problem without any workaround for it.
I have the same problem with the M475DW.
On several forum's here this problem is mentioned and for now there is no solution until there probably is an update of the HP software.