another fix in actionperformed