fix called from error