fixed issue with modal