BUG: fixed single precision bug