fixed some boundary timing issues that made the model one model step ahead of the boundary