Corrected remove wepost function and event