rewrite hide_reply() function to ensure it really works