fixing freakish error