Fixed bug where getRows couldn't be called via rpc, and fixed null
pointer error.
fixed array out of bounds exception