fixed a bug introduced day ago