added typefix function to data load callback