FIX on loading layout's resources: needed to wait for completion, before
continuing initialization