bugfix for zero filling