fixing temporary modal bug