Changed proc to indexrb