Of course you can set the fan speed in many placed in G-Code, even though you tell fan to spin 100% the sliced can quickly change it back to 50%
Open the G-Code that will not allow you to set G-Code to 100% with Note Pad ++ search for M106 to see it it may be changing fan speed after your setting it to 100%