Added modal and log to try to fix issue