Set isCreating to false after creating document