fixes availability window updates

This should fix the scheduling problem described in issue #152