this assert should be moved before open `theme_path`?