Trying to fix IF loaded twice.