Fixed /device resource bug