fix bug with real data

fix lalala
fix null pointer