hacky fix so we can use label integers as targets