changed error in callbacks to null