fixed bugs in schedule view