Fixed pins trmplate bug if not pins