Fixed indeces related to yDir updating