fixed path issue with debug mode