handlError first frame fix