fixed deflection bug