Fix bugs and check name.