task scheduling bug
refresh event bug