fixed a key error that happens if the manager field is left blank