fix nil jobs bug
fix nil work period bug
fix more bugs
fix edit of work logs and time