bug (math) fix