Modal hide fix