Added type checking in change event listener