fix a crash of null pointer for m_workareas