Converting value properly

Last commit was a mistake!