Fixed bug with unauthorized devices