fix target-app downcase bugs