Negative indicies fix