Preview fix

make preview work