Fixes selected count