Fixes errors in commands using PL