fixing logic bug with testing for pg addon