fixed server block generation bug