Fix for undefined defaultCallback