fix vs warnings