fixed uv alignment functions