fix failing spec test