fix ewp bug