typo that was causing a bug