fix: type errors