Fixed a null asccess.