Fixes wrong refrence to filename, sourceRoot can be specified