Double solving bug fixed