fix null error in clerkcommand