readonly was set at the wrong moment. blocks setting of next properties. should be set in the end