The wiring is obviously wrong. But the wiring of some thermostats can be very confusing. I finally gave up on one and called a pro, and he had trouble with it also.
Usually the wires are color coded or labeled and if you have five wires coming out of the wall, you have to connect them all.