need to take the pulley off but the bolts stuck and whenever you go to loosen it...it turns with it..

how do i get it off?