fix a bug in the application link code
remove trailing whitespace
remove trailing whitespace