Added a fix for VirtualEnv