server directory patj fix and event off