Fixed errors around array indexing without uints