Fixed a null error.