I've already commited a fix, which is a tid bit different, on SVN trunk. Thanks alot for the patch Nick! :) -- Error when using simulation mode https://launchpad.net/bugs/46568