fixed bug in acknowledgement