fix fertilizer ternary order