Fixed media.release()