fix issue 3 from https://github.com/imeji-community/imeji/issues/399