fix dynamic end display