Fix buggy painting of selected area in view area. Improve limits of selected area during selection procedure.