Fixes a minor null pointer exception.