Corrected the null pointer exception