fixed minor bug/warning