Fix while sandbox install

just some bug fixes i recognized while preparing the sandbox.