Fixing an issue when x is lesser than y