Fixed defun not found in sql mode