fixed bugs in fitted-Q iterations