fixed fatal error when using a width not divisible by four