Fixing typo in compile and detect