fix bug for formula 4