Fixed null exception.