BUG making extension compatible with strict standards