Bug fix script