resoved the bug: url undefined