Fixes for linter and plato script