Fix some bugs inside the 'runbackend' (issue #24).