fix a bug in rest keywords