Fixed null value exception.