PM - fixed fatal error when peforming maintenance options (credits to AnaaR_Ka_JuiCe)