Fixed bug with 3d->2d transition on top face