fixed: if no layout defined in plugin {} then 500 error