Check major mode
Fix mistake