And when i make a preview the program crash