frontend: avoid potential alignment fault