Fixed freezing issue when pressing play