fix n bytes (it was luckily correct, but sizeof should be used)