fix # has been inserted to uri  after close modal