Fixed code as suggested by Lars.
Fixed code as suggested by Lars.


Former-commit-id: da5e87c514bb12e648fb9041477e23d7bd61fe71 [formerly e8ca7787dee86de153d0ae7016f0d71b3c4cc7e1]
Former-commit-id: 14fc30ef4f3c09b12ec3c79ba22f7f0081259c22
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine