Fix bug with init bitmap