Fixed the recording layout not to overlap