Fixed duplicate definition bug on state transitions without statement blocks.