fix force close after apply settings (2/2)

Signed-off-by: Grarak <williye97@gmail.com>