fix solve equation