minor bug

modal would appear at load on safari