fix bug in generate inital placement location