fixed dc bug