Fixed wrong matrix init