Fixed issue with incorrect file path being used