fix warning messages in browser console for week view