fix bug for bmiddlePic