bug fix: sometimes url would be null