small bugfix, no signficant performance impact