Added lock ratio to resize and fixed anchor bug