Fixed errors appearing in VS