fix layout bug in calendar