fixed invalid lengths in sse