Bug fix for strict standards error