Fixed a bug in getFinalPoints() input logic