Fixed print for variables within arrays