Fixed a bug. Used a null pointer.