Fixed crash when the glue window is too small