Attorney for man charged with sex crimes ordered to stay on case