Fixed intermittent failure when creating applications