Bugfix: crash on unformatted device