fixed bug stopping constants_name being written