fixing bug found by claws