fixing freeze