Added fix for server-caused size mistakes

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>