fixed bug in hermitian