Fixed an pre vista compatibility issue.