Fix item selection

This appears to have been broken for a long time.