fixed hugs errors