issue with removal of LIMIT clause in generating query plan fixed