Fixed a null pointer exception in the status listener