fixed redirect to localhost