fix undefined callbacks issue