If in a SCALA notebook you have a %scala cell and if that cell has any tags at all, the master-parse seems to leave the %magic in place instead of removing it. This is resulting in having %scala cells in a SCALA notebook.
The issue similarly exists for %python in python notebooks, %sql in SQL notebooks, etc.