Add some safety checks to the interact event