Fix method for ids sent rather than object