Fix typo that caused a warning on certain conditions