Fix bug with adding custom definition

Да!