It looks like:
you change the wrong setting,
you don’t save after doing the change,
do you have an add-on which plays tricks,
or there really is something wrong with how Firefox is installed on your system.
When you get the wrong homepage what does the setting tell you? Is that also the wrong one or is it correct?