fix errorful checks