fixed wrong transformation of selection when rotating and scaling