Fixed bug with handling assigned cpu cores