#1105 fixes position of closing div