Fixed null pointer bug