Fix yaml loading for configuration