Fix bug building variable message