fix force close after apply settings

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