before body end, fix bug of bootstrap modal