You may have used too much water or not cooked it for long enough. You can try adding more sugar or simply cook down the syrup for a longer period of time. Be careful not to use too hot a fire, as you don't want your sugar to burn.