Fixed bug preventing solving of equations