Fixed card scanner exception
Fixed connection problem with ports