fixed super nasty bug.