Earthquake bug fix