[BUGFIX] change condition for LIMIT