Fixed problem with detecting HOFs.