Add a log statement to debug weird security
Fix return type typo