fix warnings in console
fix bug with maps