fix object return bug