Fixed a typo bug

This bug gave me an analyser warning, this fixes it.