Fix logic error in init_scanner method