fix: missing then in if statement