creates is invalid for get_url.
Quote everything.
Fix condition, add quotes, try to find why 1st is skipped.
Add quotes, remove trailing space.