Fixed problem in setPriority when to set to low priority