Issue with alert created using 'alertcondition' function