Thank you aratti for the fast answer to my problem. I changed the OSCCON register, and it worked at the desired frequency.

Thank you once again!