Fix bug with application submission