fixed blog demo code