Thankfully this was in the "alt" function, otherwise the whole thing never would have worked