fixed str vs int error