How to fix runtime errors in vista