fix to pass callback when not specified