fix stuff in dictionary