fixed some visual studio bugs