fix a bug for engine to take partition instead of partitions