fix day/month switch-round in rendering part of controller