fixed crashing for null and incorrect info.