fix bug with custom manager