getinbatch fix