fixed config bug with spring