fixed small compile errors