fixed incorrect logic in building controller file name