Fixes to the limit clause

Now with the modified file. Sorry about the previous one.