fix undefined longurl