Callback errors fixed and more

Callback errors fixed + null check position + always debug.writeline