fixed fromunsigned bug