fixed some bugs - but resize still doesn't work