fix bug with clickable preview