Fix bug in Phoenix captures