try to fix how r works modal