web ui: fixing bug if only one point