fix selection with decimals