Fixed mistake in chunk loading code