Missing array elements due to discontinuous acoustic windows into the body produce undesired beamforming artifacts and degrade spatial and contrast resolution. To minimize undesired artifacts, an algorithm using multiple receive beams and the totalleast-squares (TLS) method is proposed in this paper. Results show that this algorithm can effectively reduce imperfections in the point spread function of the imager. Combined with local scatterer statistics, the algorithm is modified for compensation on distributed scattering sources. Results also indicate that compensated images are comparable to full array images. This method, therefore, can enhance detection of low contrast lesions using large phased array apertures.