fixed broken d mode