fix url not defined error

fixes #4