Fixed the bug with incorrect json in composites