fixed error rising from fetchRow