Fixed pieces instantiation casts.