Fixed bugs with getAllKeys/Rows/Ids