Fixing issues with modal paths