fixed compute-bug