fixed nil error in docs.rb