little fix in Rest