fixed initial point bug