fix exception add error for model