fixed bug with graphs when app is very small