fixing calling wrong callback