fix bug in nested projection