fixed small things nim found