fixes isItemSelected method

replaced undefined method call with param