strict mode fix - thanks @Piokaz