Solved the off-by-one error (saving the Input twice)
Solved the off-by-one error (saving the Input twice)


Former-commit-id: a465ec011ff10881fa7c7223b061e722cb310a01 [formerly 0cdbe460fcc20ddfa932efd9538cac331474b6ba]
Former-commit-id: 2127353516f9eaf1447e82bd14b9c2a623ec86c9
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine