Multiple rules on single line is not working