Prevent weird edge behaviour