Avoid potential bug in front