stop compiling inventory if last is reached