The optics of a 900-GHz HEB receiver for the ASTE telescope have been analyzed by quasi-optical analysis and Physical Optics simulations in combination with beam pattern measurements. The disagreement between simulations and measurements has motivated an extensive campaign of Monte Carlo analyses to find out the cause of such a difference in results. Monte Carlo analyses have considered fabrication and assembly tolerances in all components in the RF chain, as well as some non-expected fabrication errors. This strategy has allowed determining the defective component. In short, the use of all available analyses techniques together with measurements has allowed singling out an underperforming element in an astronomical receiver. The change of this component will improve the optical efficiency and ease astronomical observations. These ideas can be of interest for any quasi-optical receiver at THz frequencies.