fix minor bug in Rickshaw.R