fix freeze