small bug fixes on frame and lines