Fix bug device