weird equation errors