method getOne
fix bug