Included last error code in gaps