fixed location bug