Fix path and frame for a rectangle