debug msg had a bug in