pattern.server small bug fix