off logic fix