fixed null url problem