Offset rule not working correctly