Fixed nasty side effect.