Fixed checkTable