fixing errors graph