diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index d2ab4c8f247975994339bcec974b1c3e1fdaee43..1af761cfc4c96170d7c1d2256afe4817cd1ec1c2 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -1,8 +1,7 @@
 desc "Run all specs and features"
 task :ci => [:environment] do
-  system "export DISPLAY=:99"
   system "/etc/init.d/xvfb start"
-  system "bundle exec rake"
+  system "DISPLAY=:99.0 bundle exec rake"
   exit_status = $?.exitstatus
   system "/etc/init.d/xvfb stop"
   raise "tests failed!" unless exit_status == 0