bug fix for controllers in subdirectories