error: posx and posy should be finite values
error: posx and posy should be finite values