fix some odd behavior