fixes bugs with capistrano