fix LIMIT bug