fixed some problems with preview on multi-monitor setups