fixed previous day bug; closes #982