Fix retrieving device source error