Fixed 'cannot call constructor directly' message.