Fixed issue with rules in landscape mode.