fixed applySelection when applying without any change