fix bundle install problem in application tempalte