code greencard fix bugs