fix head height when swapping

Signed-off-by: Kevin Wagrez <kevin.wagrez@gmail.com>