fixed bug with yaml loading