fixed thing on error check thing