Resolve get_height() error when initialized using url