Bugfix, spotted by phenri