I have attached a patch to fix the same. please review