I think i fixed the fabric function