fix change theme method for not set defaultLayout property