Fix Mac OS X Dock minimising issue