fix preview pictures bug