Fixes error that prevented clicking from adding points