Fixed a NullPointerException on startup.
Fixed a NullPointerException.