bug fixes for demo files