fix dynamic memory filler routine