fix crash caused by not initializing a callback to NULL