Fixed checkGrid