fixed dd bug

by puting checking bol first