fixed devil bug