prevented graph to crash if empty