fixes index bounds error
fixes index bounds error

jcu-eresearch/climas-ng,DanielBaird/climas-global,DanielBaird/climas-global,jcu-eresearch/climas-ng,jcu-eresearch/climas-ng,jcu-eresearch/climas-ng,jcu-eresearch/climas-ng,DanielBaird/climas-global,DanielBaird/climas-global,DanielBaird/climas-global