Fixed bug with limits commands generation