Api rest fix bug