Fixed undefined callback method