fixes absolute path to json in controller