fixed copy/paste problem with error_callback