Fixed overlay issue. Now overlay is one layer behind modal.