as-map method missing for objects of Projection type

Projection is not implementing AsMap protocol resulting in exceptions when creating tables with local secondary indexes . The tables are created but at the end an exception rise when the table info is displayed .