Fixing model alignment and p3d callbacks