stateless modal fix