fix by ids method