fix syntax error and delete unused views