fixed getTables return value