fixed not properly written queue_step
converting the penalty taken form hashes to int