Fix bugs regarding Zeus and Rails 4