awt is ok; error on return