Fixed out callback functioning invoking at the correct time.