Fixing bug with application