fixed bug in receiver class