- fixed addData method (exception was always thrown)