Fixing small bug in paste api template.