Fixed a bug with filename and path lenghts

Fixed a Visual Studio bug with filename and path lenghts