fixed bug with expected read from source