spent almost a whole day to fix a bug resulted from a typo
fix typo