fixed router error with ptr