fixed re-initialization of RestKit

when changing the API endpoint