Fixed url undefined error.

Fixes #34