Fixed weird thing with the -d option