fixed that one bug with selection