Minor bug fixed in empty graph