Fix logic with spoint variable.