use the following website to get your firmwares.
http://www.sammobile.com/firmwares/
These are the official ones released by samsung.
As long as you flash the right firmware for your phone you will not have a problem. (Beware for the G and not G s2 models)
Are you downgrading so some sort of application works?