[Fix #166] Make g behave properly in error lists