this should be != 0 but anyway I'll replace this code with on-the-fly scaling in a little while