Fixed a small bug for resetting the internal transitions and another for executing the internal transitions callback method