fix task view and resource view appear meanwhile issue