fix selection rectangle