fixed a check