Class not nested correctly for composer