Fixed broken event listener alert