try to fix bug that sometimes shows during battle