fixing errors in editing attendance