fixed bug with cd