bugfix: wrong internal task queue to pop immediate task
explicitly initialize static variable to nullptr