Change resource priority and Fix little bugs