Fix typo which caused the application to crash