Fix bug writed varaible