fix: if for callback