WebMaster: fix length calculation