fix loading of multiple vertical pes.

Implements (2570)[https://www.openproject.org/issues/2470]