Fixed problem at if sentence in spree_application layout