Fix error on readAll operation

`@constructor` in a class function is `Function`!