Fixed LIMIT bug