fixed initial location bug