a bad fix for modal not working bug