Fixed wrong transitions.