fix in_array condition in preview