Fixed causality bug.