fixed the bug with the use of card editor