Clamping of ferroelectric and antiferromagnetic order parameters of YMnO3