Fixed why it was overall a null pointer exception