Fix modals showing on screen during load