Ringbuffer fixing

task #93

Change-Id: I6e1fd27f24edd12484317210cefbc74f8df7de8f
Signed-off-by: Martika <martikaschwan@yahoo.de>