Fix errors in table creation for month view