Is it a design flaw/ The ac hose rubbing against the compressor pulley on 2008 Scion xB

I have a small leak and losing freon because the a/c hose is vibrating and is so close to compressor pulley that it has rubbed a small hole in the rubber part of the ac

Asked by for the 2008 Scion xB