small bugfix, thanks to mystcraft