Fix for counter script