fixing unsafe filter for minification issue