fixes crash issue when there is no pre-loaded data .