Fixing some bugs

stupidly, the default assertion handler was never created