Fixes #1: pre-declared variables made readonly