fixed crash on having