commandpreprocessevent fix