Unable to change the default broker port while configuring portal

Hi,
I am currently installing webMethods 6.5. I have broker running on port 7849.
Now while configuring portal even if I change the default port for broker from 6849 to 7849 the intstaller throws an error saying " Unable to connnect to broker on localhost:6849".
Has anyone faced this issue earlier?
Any help will be very much appreciated.

Regards
Yogesh