How planets form around brown dwarfs?