fix a bug about show from database