Fixed assignment not compare error