fix preview size bug