small fix in rest