fixed bug in fromBaseScalar when using prefixes in conversion