Fix NullPointerException.
Fix MethodProportional constant.