fixed autosleep and enabled it