Fixed erroneous cell referencing