fixed potential issue in generating hash of args/kwargs