gnome-screensaver fix

Fix for gnome-screensaver issue.