fixed an issue that could cause unbalanced transitions in some situations