fixed a bug in server side scaling