Fixed parser bug which could prevent a valid end of step