There appears to be a race condition, this should fix