Fix reversed logic
Make screenshots work even with prefixes