fixed preview when data window was different than display window