Fixed coercion bug by adding coerce method