Fix #494 Improve unite#custom#profile() behavior