Fix for running on Vista