User Department Bug Fix

Fixed a bug that was causing the wrong department to be displayed when
viewing a user's details.