Fixed bug with the process priority