fix preview modal plugin