Fixed and tested the refreshing safeguard.