fix width 0 bug + first frame render when no play