error with undefined instead of id in url