Fixed zero degree bug: result was not 1