fixes issue with debugmodule initializing view component too early

fixes #929