Fixed bug involving Statements and ResultSets