Fix the backgroud process bug. Fixes #13