fixing hanging