Fixed race conditions in chunk loading