log mask fix