fixing reservoir bug