fixed double modal bug