fixed bug in precomputer