fixing issue https://github.com/flot/flot/issues/1364