Fixed fatal error: 'cannot call constructor' in versions lower than 1.9 (thanks, Erfan Imani)