fixed LIMIT bug