Fixed a minor typo which was causing a bug