Fixed a NullPointerException.