Fixed world not generate correctly when refreshing page