fixed flat location bug