finally found that tricky bug