Fixed localhost issue with callbacks.