Fixed resizing. Works properly now.