Minor fixes to way of scheduling bucket refreshing tasks.