Typo in peak detector