Fixed resizesd return code inversed