fixes calendar generation