The diagram looks fine, but your switch may have the lugs arranged differently to the diagram! It's usually a good idea to meter the switch contacts to check they are the same as the diagram.