Fixed crash when no callback defined