fixed an issue with Frame