fixed issue found by insight