fix graphics async JS