Fix red by moving the difinition up.