Fixes a bug in any click within main-container