Fix bug with default as var