fix fk filter error

Seems to be related to #737