Fix auto select of first item bug