fixed annoying b -> a bug