fixed small nopreference bug