fixed AS calc return value