Fixing a bug in the application path computation