fixed bug with points