fixes small bug with cd