fixed 'r=' decode