Fixed pastecount bug