PR/342: Jan Kaluza: Reverse order of evaluation to fix out of bounds read.