fix behaviour when padded-grid set to true