fixed bug img preview