Fixed issue with calendar widget appearing when it shouldn't.