Fixed code of operations according documentation