fix bug in database enter-argument function