fixed crahsing preview