fix small bug in line preview mode