Player head (behind Bungeecord)

When using this code behind BungeeCord (online mode):

			ItemStack playerskull = ItemStack.of(ItemTypes.SKULL, 1);
			playerskull.offer(Keys.SKULL_TYPE, SkullTypes.PLAYER);
			playerskull.offer(Keys.REPRESENTED_PLAYER, player.getProfile());

get offline type head instead of valid skin.

Howto fix?