Fix the function for the command receiving interruption.