fixed a bug while playing recorded files