Fixes a potential bug.