Fix for writing scores