fix query problem in https://github.com/imeji-community/imeji/issues/204