Hello, To reproduce the bug: 1. emacs -Q --eval "(require 'org-habit)" 2. Open the following org file: ---------------begin---------------------- * TODO foo SCHEDULED: <2023-02-01 Wed .+2d/4d> :PROPERTIES: :STYLE: habit :CATEGORY: foo :END: * TODO bar SCHEDULED: <2023-02-01 Wed> ------------- end ---------------------- 3. M-x org-agenda, then press < a to create an agenda buffer 4. Go to the line containing foo, press < Expected result: the agenda buffer shows only foo Actual result: org-agenda-filter-by-category: No category at point