fixed small side image and fixed bug when error is thrown