Was using the wrong method and now uses the method which checks if the avatar link is relative or not.