Add reshape namespace to try and fix cast bug