Fix return value in rectangle conversion methods