fixed bug when theres an empty has